using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;using THSERP.BusinessEntities;using THSERP.BaseProvider;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace THSERP.Modules.Report
{
    public partial class RP018 : ReportForm
    {
        public RP018()
        {
            InitializeComponent();
        }

        private void fld_btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void RP018_Load(object sender, EventArgs e)
        {
            fld_dgcHRRP018Employees.Screen = this;
            fld_dgcHRRP018Employees.InitializeControl();

            InitializeDataSource();
        }

        public void InitializeDataSource()
        {
            DataSet ds = new HREmployeesController().GetAllObjects();
            if (ds.Tables.Count > 0)
                fld_dgcHRRP018Employees.DataSource = ds.Tables[0];
        }
    }
}